﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:local="clr-namespace:EIA.SLClient.ProjectManage.Members"
	xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions" xmlns:EIA_SLClient_Utility_Behaviors="clr-namespace:EIA.SLClient.Utility.Behaviors;assembly=EIA.SLClient.Utility"
	xmlns:EIA_SLClient_ProjectManage="clr-namespace:EIA.SLClient.ProjectManage;assembly=EIA.SLClient.ProjectManage"
	mc:Ignorable="d"
	x:Class="EIA.SLClient.ProjectManage.Members.MemberEditView"
	d:DesignWidth="640" d:DesignHeight="480">
	<UserControl.Resources>
		<local:MemberEditViewModel x:Key="MemberEditViewModelDataSource" />
	</UserControl.Resources>

	<Grid x:Name="LayoutRoot" DataContext="{Binding Source={StaticResource MemberEditViewModelDataSource}}">
		<Grid Background="#00000000" Visibility="{Binding IsShow, Converter={StaticResource Bool2VisibilityConverter}}">
			<Border HorizontalAlignment="Center" Height="149" VerticalAlignment="Center" Width="240" BorderThickness="1" BorderBrush="Black" Background="#FFEBEBEB">
				<Grid>
					<Grid.RowDefinitions>
						<RowDefinition Height="26"/>
						<RowDefinition Height="0.3*"/>
						<RowDefinition Height="0.3*"/>
						<RowDefinition Height="0.3*"/>
					</Grid.RowDefinitions>
					<Grid.ColumnDefinitions>
						<ColumnDefinition Width="60"/>
						<ColumnDefinition/>
					</Grid.ColumnDefinitions>
					<Grid Grid.ColumnSpan="2" Background="#FF888888">
						<TextBlock HorizontalAlignment="Left" Margin="8,0,0,0" TextWrapping="Wrap" Text="{Binding TitleTip}" d:LayoutOverrides="Height" VerticalAlignment="Center"/>
					</Grid>
					<TextBlock TextWrapping="Wrap" Text="员工" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Row="1"/>
					<TextBlock TextWrapping="Wrap" Text="工作量" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Row="2"/>
					<HyperlinkButton Content="取消" Grid.Column="1" Grid.Row="3" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,16,0" Command="{Binding CancelCommand}"/>
					<HyperlinkButton Content="确定" Grid.Column="1" Grid.Row="3" VerticalAlignment="Center" Margin="0,0,68,0" HorizontalAlignment="Right" Command="{Binding SaveCommand}"/>
					<TextBox Grid.Column="1" Grid.Row="2" TextWrapping="Wrap" Text="{Binding Model.WorkRate, Converter={StaticResource PercentageConverter}, Mode=TwoWay}" HorizontalAlignment="Left" VerticalAlignment="Center" Width="120" Margin="8,8,0,8"/>
					<EIA_SLClient_ProjectManage:StaffSelector StaffCollection="{Binding StaffCollection, Source={StaticResource ListsResource}}" SelectedStaff="{Binding SelectedStaff, Mode=TwoWay}" Grid.Column="1" Margin="8,8,0,8" Grid.Row="1" HorizontalAlignment="Left" Width="120" VerticalAlignment="Center" Height="24" IsEnabled="{Binding IsNew}"/>
					<TextBlock Grid.Column="1" HorizontalAlignment="Right" Margin="0,0,34,0" Grid.Row="2" TextWrapping="Wrap" Text="%" d:LayoutOverrides="Height" VerticalAlignment="Center"/>
				</Grid>
			</Border>
		</Grid>
	</Grid>
</UserControl>
